package com.wjt.polly.repository;

import com.wjt.polly.entity.Role;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

/**
 * @author liqin@nd.com.cn
 * @version V1.0
 * @title: RoleDao
 * @description: TODO(用一句话描述该文件做什么)
 * @date: 2019/8/27 21:52
 */
@Component
public interface RoleDao {

    @Select("<script> select * from wjt_roles where role_id = #{roleId} </script>")
    Role findByRoleId(@Param("roleId") Integer roleId);
}
